package com.china08.yxyapi.entity.mg.esbag;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 授课包--授课记录信息, 每一次授课包使用一次,就记录一次使用情况.
 * 
 * @author Richard.Wang
 * @descript
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.tea.esbag.teaching.track")
public class YxyEsbagTeachingTrack extends MongoBaseEntityNoId {

	@Id
	private String id;

	/**
	 * 授课包id, 此id使用授课包id
	 */
	@Field(value = "pack_id")
	private String packId;

	/**
	 * 授课包名称
	 */
	@Field(value = "pack_name")
	private String packName;

	@Indexed
	@Field(value = "teacher_id")
	private String teacherId;

	@Field(value = "teacher_nick")
	private String teacherNick;

	@Field(value = "school_id")
	private String schoolId;

	@Field(value = "school_nick")
	private String schoolNick;

	/**
	 * 授课时间, 使用int进行记录, 方便之后查询统计.
	 */
	@Field(value = "int_date")
	private Integer intDate;

	/**
	 * 授课开始时间
	 */
	@Field(value = "begin_date")
	private Date beginDate;

	/**
	 * 授课结束时间
	 */
	@Field(value = "end_date")
	private Date endDate;

	/**
	 * 授课时长, 使用秒进行记录.
	 */
	@Field(value = "use_time")
	private Long useTime;

	/**
	 * 授课班级
	 */
	@Field(value = "class_id")
	private String classId;

	/**
	 * 授课班级名称
	 */
	@Field(value = "class_name")
	private String className;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPackId() {
		return packId;
	}

	public void setPackId(String packId) {
		this.packId = packId;
	}

	public String getPackName() {
		return packName;
	}

	public void setPackName(String packName) {
		this.packName = packName;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getTeacherNick() {
		return teacherNick;
	}

	public void setTeacherNick(String teacherNick) {
		this.teacherNick = teacherNick;
	}

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	public String getSchoolNick() {
		return schoolNick;
	}

	public void setSchoolNick(String schoolNick) {
		this.schoolNick = schoolNick;
	}

	public Integer getIntDate() {
		return intDate;
	}

	public void setIntDate(Integer intDate) {
		this.intDate = intDate;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Long getUseTime() {
		return useTime;
	}

	public void setUseTime(Long useTime) {
		this.useTime = useTime;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

}
